﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="js/swfupload.js"></script>
    <script type="text/javascript" src="js/swfupload.queue.js"></script>
    <script type="text/javascript" src="jquery/jquery-1.4.2.min.js"></script>
    
    <script type="text/javascript">
        var swfu;
        $(document).ready(function() {
        var settings_object = { flash_url: "js/swfupload.swf",
            upload_url: "ExtHandler/swfUpload.ashx",
            file_size_limit: "5 MB",
            ile_types: "*.jpg",
            file_types_description: "JPG Images",

            custom_settings: {
                progressTarget: "fsUploadProgress",
            },
            //Event Handler Settings
            file_dialog_complete_handler: function(numFilesSelected, numFilesQueued) { if (numFilesQueued > 0) this.startUpload(); },
            upload_success_handler: function(file, responseText) { alert(file.name + " saveas " + responseText); },
            button_image_url: "img/Popup_buttom_Bg.gif",
            button_placeholder_id: "spanButtonPlaceholder",
            button_width: 160,
            button_height: 22,
            button_text: '上传文件(&lt;3M)',
            debug: false
        };
            //swfu = new SWFUpload();
            swfu = new SWFUpload(settings_object);
        });
    
    </script>
</head>
<body>
<form id="form1" runat="server" enctype="multipart/form-data">
<div>
<div class="fieldset flash" id="fsUploadProgress"></div>
<div id="spanButtonPlaceholder"></div>
</div>
</form>
</body>
</html>
